package org.mics.organization.request;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 公司
 * @author mics
 * @date 2023-9-22
 * @version  1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "创建公司请求")
public class CompanyRequest implements Serializable{
	
    /**
	 * 序列号
	 */
	private static final long serialVersionUID = 6797141347878920130L;


	@Size(min = 2, max = 32, message = "公司名称长度2-32位")
    @NotBlank(message = "公司名称不能为空")
    @Schema(description = "公司名称",required = true)
	private String name;
	
	@Schema(description = "负责人")
  	@Size(min = 2,max = 32,message = "负责人长度2-32位")
    private String manager;
    
  	@Schema(description = "负责人电话")
  	@Size(min = 11,max = 11,message = "负责人电话长度11位")
    private String managerMobile;
    
    @Schema(description = "上级公司id")
	private String parentId;
    
	
}
